package totask.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import totask.dao.StatusMapper;
import totask.pojo.TotaskTaskstatus;
import totask.service.StatusService;

@Service
public class StatusServiceImpl implements StatusService {
    @Autowired
    private StatusMapper statusMapper;
    @Override
    public TotaskTaskstatus queryByStatus(Integer TaskStatusId) {
        QueryWrapper<TotaskTaskstatus> query = new QueryWrapper();
        query.eq("taskstatus_id",TaskStatusId);
        TotaskTaskstatus totaskStatus = statusMapper.selectOne(query);
        return totaskStatus;
    }
}
